package cn.fengsweb.tokyotyrant
{
	import flash.utils.ByteArray;
	
	internal class PutMoreNoKey
	{
		private var _keyArray:Array;
		private var _valueArray:Array;
		
		public function get length():uint
		{
			return _valueArray.length;
		}
		
		public function PutMoreNoKey(valueArray:Array)
		{
			_valueArray		= valueArray;
		}
		
		public function getSendBytes(uid:String):ByteArray
		{
			var obj:Object	= _valueArray.shift();
			
			if(null != obj){
				var putOneNoKey:PutOneNoKey	= new PutOneNoKey(obj);
					putOneNoKey.setUid(uid);
				return putOneNoKey.sendBytes;
			}
			
			return null;
			
		}
	}
}